﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ForumDomainModels.Mappers
{
    public class SectionMapper
    {
        public ForumDomainModels.Section DataFromDatabaseToSectionDomainModel(SqlDataReader reader)
        {
            ForumDomainModels.Section sectionModel = new ForumDomainModels.Section();
            sectionModel.Id = (int)reader["Id"];
            sectionModel.Name = (string)reader["Name"];
            return sectionModel;
        }
    }
}
